//
//  ViewController.m
//  UI05_homework_RainbowLamp
//
//  Created by aaaaaa on 16/6/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "RainbowLampUIView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createRainbowLamp];
    
}

- (void)createRainbowLamp {
    RainbowLampUIView *rainbowLamp1 = [[RainbowLampUIView alloc] initWithFrame:CGRectMake(50, 100, 200, 200) withCount:9];
    [self.view addSubview:rainbowLamp1];
    [rainbowLamp1 release];
    
    RainbowLampUIView *rainbowLamp2 = [[RainbowLampUIView alloc] initWithFrame:CGRectMake(10, 10, 80, 80) withCount:7];
    [self.view addSubview:rainbowLamp2];
    [rainbowLamp2 release];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
